import random

def generate_test_case(n_max=5, num_max=10):
    """生成随机测试用例"""
    n = random.randint(0, n_max)  # 数组长度
    nums = [random.randint(0, num_max) for _ in range(n)]
    return nums

if __name__ == "__main__":
    print("Generated test array:", generate_test_case())    